/*
 * Created on Feb 27, 2005
 * Created by dfhuynh
 */
package edu.mit.simile.longwell.corpus;

import java.util.Properties;

import com.hp.hpl.jena.rdf.model.ModelFactory;

/**
 *
 */
public class MemoryConnector implements Connector {

    /* (non-Javadoc)
     * @see edu.mit.simile.corpus.IJdbcConnector#connect(java.util.Properties, java.lang.String)
     */
    public Corpus connect(Properties properties, String corpusURI) {
        return new MemoryCorpus(corpusURI);
    }

}

/**
 * @author dfhuynh
 */
class MemoryCorpus extends Corpus {

	/**
	 * @param corpusURI
	 */
	public MemoryCorpus(String corpusURI) {
		super(corpusURI);
	}

	/* (non-Javadoc)
	 * @see edu.mit.simile.corpus.Corpus#createModel()
	 */
	protected void createModel() throws Exception {
		m_model = ModelFactory.createDefaultModel();
	}
}
